package MediatorPattern;

import java.util.concurrent.TimeUnit;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        User liuliu = new User("liuliu");
        User moamao = new User("maomao");

        liuliu.sendMessage("I love Maomao");
        Thread.sleep(10000);
        moamao.sendMessage("I love you too");
    }
}
